package com.shuda.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

/**
 * 用户角色关联DTO
 */
@Schema(description = "用户角色关联DTO")
public class UserRoleDTO {

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "角色ID")
    private Long roleId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "角色名称")
    private String roleName;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /** 获取/设置主键ID */
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    /** 获取/设置用户ID */
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    /** 获取/设置角色ID */
    public Long getRoleId() { return roleId; }
    public void setRoleId(Long roleId) { this.roleId = roleId; }

    /** 获取/设置用户名 */
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    /** 获取/设置角色名称 */
    public String getRoleName() { return roleName; }
    public void setRoleName(String roleName) { this.roleName = roleName; }

    /** 获取/设置角色编码 */
    public String getRoleCode() { return roleCode; }
    public void setRoleCode(String roleCode) { this.roleCode = roleCode; }

    /** 获取/设置创建人 */
    public String getCreateBy() { return createBy; }
    public void setCreateBy(String createBy) { this.createBy = createBy; }

    /** 获取/设置创建时间 */
    public LocalDateTime getCreateTime() { return createTime; }
    public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }

    /** 获取/设置更新人 */
    public String getUpdateBy() { return updateBy; }
    public void setUpdateBy(String updateBy) { this.updateBy = updateBy; }

    /** 获取/设置更新时间 */
    public LocalDateTime getUpdateTime() { return updateTime; }
    public void setUpdateTime(LocalDateTime updateTime) { this.updateTime = updateTime; }
}